import { Module } from '@nestjs/common';
import { AttachementService } from './attachement.service';
import { AttachementController } from './attachement.controller';
import { Attachement } from './entities/attachement.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MulterModule } from '@nestjs/platform-express';
import { multerOptions } from './attachement.stroage';

@Module({
  imports: [TypeOrmModule.forFeature([Attachement]),MulterModule.register(multerOptions)],
  controllers: [AttachementController],
  providers: [AttachementService],
  exports: [AttachementService]
})
export class AttachementModule {}
